package com.jwsoft.manager.common.enums;

public enum deleteSyncFlagEnum {
//    删除同步状态 0 未同步 1 同步成功 2同步失败
    WTB("0", "未同步"),
    TBCG("1", "同步成功"),
    TBSH("2", "2同步失败");

    private String type;
    private String name;

    private deleteSyncFlagEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static deleteSyncFlagEnum getByType(String type) {
        for (deleteSyncFlagEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
